package com.hm.cloud.nacos.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huangmai
 * @Title: ConfigController
 * @ProjectName spring-cloud-alibaba
 * @Description: TODO
 * @date 2021/10/1217:46
 */
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Value("${app.msg}")
    private String msg;

    @GetMapping("/msg")
    public String getConfig(){
        return msg;
    }
}
